﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F6F RID: 3951
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepterTakeOffUnitScRsp : IMessage<RogueMagicScepterTakeOffUnitScRsp>, IMessage, IEquatable<RogueMagicScepterTakeOffUnitScRsp>, IDeepCloneable<RogueMagicScepterTakeOffUnitScRsp>, IBufferMessage
	{
		// Token: 0x1700321F RID: 12831
		// (get) Token: 0x0600B116 RID: 45334 RVA: 0x001DEC50 File Offset: 0x001DCE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepterTakeOffUnitScRsp> Parser
		{
			get
			{
				return RogueMagicScepterTakeOffUnitScRsp._parser;
			}
		}

		// Token: 0x17003220 RID: 12832
		// (get) Token: 0x0600B117 RID: 45335 RVA: 0x001DEC57 File Offset: 0x001DCE57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterTakeOffUnitScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003221 RID: 12833
		// (get) Token: 0x0600B118 RID: 45336 RVA: 0x001DEC69 File Offset: 0x001DCE69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepterTakeOffUnitScRsp.Descriptor;
			}
		}

		// Token: 0x0600B119 RID: 45337 RVA: 0x001DEC70 File Offset: 0x001DCE70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitScRsp()
		{
		}

		// Token: 0x0600B11A RID: 45338 RVA: 0x001DEC78 File Offset: 0x001DCE78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitScRsp(RogueMagicScepterTakeOffUnitScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B11B RID: 45339 RVA: 0x001DEC9D File Offset: 0x001DCE9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterTakeOffUnitScRsp Clone()
		{
			return new RogueMagicScepterTakeOffUnitScRsp(this);
		}

		// Token: 0x17003222 RID: 12834
		// (get) Token: 0x0600B11C RID: 45340 RVA: 0x001DECA5 File Offset: 0x001DCEA5
		// (set) Token: 0x0600B11D RID: 45341 RVA: 0x001DECAD File Offset: 0x001DCEAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B11E RID: 45342 RVA: 0x001DECB6 File Offset: 0x001DCEB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepterTakeOffUnitScRsp);
		}

		// Token: 0x0600B11F RID: 45343 RVA: 0x001DECC4 File Offset: 0x001DCEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepterTakeOffUnitScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B120 RID: 45344 RVA: 0x001DECF4 File Offset: 0x001DCEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B121 RID: 45345 RVA: 0x001DED33 File Offset: 0x001DCF33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B122 RID: 45346 RVA: 0x001DED3B File Offset: 0x001DCF3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B123 RID: 45347 RVA: 0x001DED44 File Offset: 0x001DCF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B124 RID: 45348 RVA: 0x001DED78 File Offset: 0x001DCF78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B125 RID: 45349 RVA: 0x001DEDB6 File Offset: 0x001DCFB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepterTakeOffUnitScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B126 RID: 45350 RVA: 0x001DEDE7 File Offset: 0x001DCFE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B127 RID: 45351 RVA: 0x001DEDF0 File Offset: 0x001DCFF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040047B5 RID: 18357
		private static readonly MessageParser<RogueMagicScepterTakeOffUnitScRsp> _parser = new MessageParser<RogueMagicScepterTakeOffUnitScRsp>(() => new RogueMagicScepterTakeOffUnitScRsp());

		// Token: 0x040047B6 RID: 18358
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047B7 RID: 18359
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040047B8 RID: 18360
		private uint retcode_;
	}
}
